import request from '@/utils/request'

// 获取仪表盘概览数据
export function getDashboardOverview() {
  return request({
    url: '/admin/dashboard/overview',
    method: 'post'
  })
}

// 获取存储趋势数据
export function getStorageTrend(days = 7) {
  return request({
    url: '/admin/dashboard/storage/trend',
    method: 'post',
    params: { days }
  })
}

// 获取最近活动
export function getRecentActivity() {
  return request({
    url: '/admin/dashboard/activity',
    method: 'post'
  })
}

// 获取文件类型分布
export function getFileTypeDistribution() {
  return request({
    url: '/admin/dashboard/fileTypeDist',
    method: 'post'
  })
}

// 获取用户趋势
export function getUserTrend(days = 7) {
  return request({
    url: '/admin/dashboard/userTrend',
    method: 'post',
    params: { days }
  })
} 